package com.wys.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wys.common.utils.PageUtils;
import com.wys.mall.product.entity.CategoryEntity;
import com.wys.mall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author charlin
 * @email 136137465@qq.com
 * @date 2021-06-14 21:57:39
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    Long[] findCatelogPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    /**
     * 查询一级分类
     * @return
     */
    List<CategoryEntity> getOneLevelCategories();

    /**
     * 查询二级与三级分类
     * @return
     */
    Map<String, List<Catelog2Vo>> getCategoryJson();
}

